package com.cnt.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cnt.entity.Persons;
import com.cnt.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;
@Mapper
public interface PersonDao extends BaseMapper<Persons> {
    @Select("select * from persons WHERE user_id=#{userId}")
    List<Persons> getPersons(Integer userId);
}
